package com.roamer.vo;

import java.io.Serializable;
import java.util.List;

/**
 * 天气
 *
 * @author roamer
 * @version v1.0
 * @date 2020/3/26 12:26
 */
public class WeatherRestResult implements Serializable {
    private static final long serialVersionUID = 4226241233800328503L;

    /**
     * reason : 查询成功!
     * result : {"city":"上海","realtime":{"temperature":"20","humidity":"97","info":"阴","wid":"02","direct":"北风","power":"0级","aqi":"49"},"future":[{"date":"2020-03-26","temperature":"13/25℃","weather":"小雨转大雨","wid":{"day":"07","night":"09"},"direct":"北风转南风"},{"date":"2020-03-27","temperature":"9/14℃","weather":"小雨","wid":{"day":"07","night":"07"},"direct":"南风"},{"date":"2020-03-28","temperature":"8/11℃","weather":"阴","wid":{"day":"02","night":"02"},"direct":"西南风转西风"},{"date":"2020-03-29","temperature":"9/13℃","weather":"中雨","wid":{"day":"08","night":"08"},"direct":"西风转北风"},{"date":"2020-03-30","temperature":"8/14℃","weather":"小雨转多云","wid":{"day":"07","night":"01"},"direct":"东风转东南风"}]}
     * error_code : 0
     */
    private String reason;
    private ResultInfo result;
    private Integer error_code;

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public ResultInfo getResult() {
        return result;
    }

    public void setResult(ResultInfo result) {
        this.result = result;
    }

    public Integer getError_code() {
        return error_code;
    }

    public void setError_code(Integer error_code) {
        this.error_code = error_code;
    }

    public static class ResultInfo {
        /**
         * city : 上海
         * realtime : {"temperature":"20","humidity":"97","info":"阴","wid":"02","direct":"北风","power":"0级","aqi":"49"}
         * future : [{"date":"2020-03-26","temperature":"13/25℃","weather":"小雨转大雨","wid":{"day":"07","night":"09"},"direct":"北风转南风"},{"date":"2020-03-27","temperature":"9/14℃","weather":"小雨","wid":{"day":"07","night":"07"},"direct":"南风"},{"date":"2020-03-28","temperature":"8/11℃","weather":"阴","wid":{"day":"02","night":"02"},"direct":"西南风转西风"},{"date":"2020-03-29","temperature":"9/13℃","weather":"中雨","wid":{"day":"08","night":"08"},"direct":"西风转北风"},{"date":"2020-03-30","temperature":"8/14℃","weather":"小雨转多云","wid":{"day":"07","night":"01"},"direct":"东风转东南风"}]
         */

        private String city;
        private Realtime realtime;
        private List<Future> future;

        public String getCity() {
            return city;
        }

        public void setCity(String city) {
            this.city = city;
        }

        public Realtime getRealtime() {
            return realtime;
        }

        public void setRealtime(Realtime realtime) {
            this.realtime = realtime;
        }

        public List<Future> getFuture() {
            return future;
        }

        public void setFuture(List<Future> future) {
            this.future = future;
        }
    }

    public static class Realtime {
        /**
         * temperature : 20
         * humidity : 97
         * info : 阴
         * wid : 02
         * direct : 北风
         * power : 0级
         * aqi : 49
         */

        private String temperature;
        private String humidity;
        private String info;
        private String direct;
        private String power;
        private String aqi;

        public String getTemperature() {
            return temperature;
        }

        public void setTemperature(String temperature) {
            this.temperature = temperature;
        }

        public String getHumidity() {
            return humidity;
        }

        public void setHumidity(String humidity) {
            this.humidity = humidity;
        }

        public String getInfo() {
            return info;
        }

        public void setInfo(String info) {
            this.info = info;
        }

        public String getDirect() {
            return direct;
        }

        public void setDirect(String direct) {
            this.direct = direct;
        }

        public String getPower() {
            return power;
        }

        public void setPower(String power) {
            this.power = power;
        }

        public String getAqi() {
            return aqi;
        }

        public void setAqi(String aqi) {
            this.aqi = aqi;
        }
    }

    public static class Future {
        /**
         * date : 2020-03-26
         * temperature : 13/25℃
         * weather : 小雨转大雨
         * wid : {"day":"07","night":"09"}
         * direct : 北风转南风
         */

        private String date;
        private String temperature;
        private String weather;
        private String direct;

        public String getDate() {
            return date;
        }

        public void setDate(String date) {
            this.date = date;
        }

        public String getTemperature() {
            return temperature;
        }

        public void setTemperature(String temperature) {
            this.temperature = temperature;
        }

        public String getWeather() {
            return weather;
        }

        public void setWeather(String weather) {
            this.weather = weather;
        }


        public String getDirect() {
            return direct;
        }

        public void setDirect(String direct) {
            this.direct = direct;
        }

    }

}
